package de.hach.manno.task;

import android.os.AsyncTask;
import android.util.Log;
import de.hach.manno.webservice.Club;
import de.hach.manno.webservice.MannOWebservice;

//PUT club TO WEBSERVICE
// ASYNCRONOUSlY POST
public class PutClubTask extends AsyncTask<Club, Integer, Boolean> {
	private static final String TAG = "PutClubTask";

	@Override
	protected Boolean doInBackground(Club... club) {
		try {
			Log.d(TAG, "AsyncTask put " + club[0]);
			boolean updateSuccesful = MannOWebservice.putClub(club[0]);
			return updateSuccesful;
		} catch (Exception e) {
			Log.d(TAG, "PUT of " + club[0] + "failed");
			return false;
		}
	}

}